package com.bestdreamer.thread_join;

public class Demo1JoinRun {

    public static void main(String[] args) {
        try{
            Demo1ThreadB threadB = new Demo1ThreadB();
            Demo1ThreadA threadA = new Demo1ThreadA(threadB);
            threadA.start();
            Thread.sleep(1000);
            Demo1ThreadC threadC = new Demo1ThreadC(threadB);
            threadC.start();
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
